<!--字典类型-->
<script setup lang="ts">
import {
  getDictTypePage,
  getDictTypeForm,
  addDictType,
  updateDictType,
  deleteDictTypes,
} from "@/api/dict";

import { DictTypePageVO, DictTypeQuery, DictTypeForm } from "@/api/dict/types";
import { Edit, Grid, Delete, Close, Search } from '@element-plus/icons-vue'
defineOptions({
  name: "merchantList",
  inheritAttrs: false,
});

const queryFormRef = ref(ElForm);
const dataFormRef = ref(ElForm);

const loading = ref(false);
const ids = ref<number[]>([]);
const total = ref(0);

const queryParams = reactive<DictTypeQuery>({
  pageNum: 1,
  pageSize: 10,
});

const dictTypeList = ref<DictTypePageVO[]>();

const dialog = reactive({
  title: "",
  visible: false,
});

const formData = reactive<DictTypeForm>({
  status: 1,
});

const rules = reactive({
  name: [{ required: true, message: "请输入字典类型名称", trigger: "blur" }],
  code: [{ required: true, message: "请输入字典类型编码", trigger: "blur" }],
});

/** 查询 */
function handleQuery() {
  loading.value = true;
  getDictTypePage(queryParams)
    .then(({ data }) => {
      dictTypeList.value = data.list;
      total.value = data.total;
    })
    .finally(() => {
      loading.value = false;
    });
}

/**
 * 重置查询
 */
function resetQuery() {
  queryFormRef.value.resetFields();
  queryParams.pageNum = 1;
  handleQuery();
}

/** 行复选框选中  */
function handleSelectionChange(selection: any) {
  ids.value = selection.map((item: any) => item.id);
}

/**
 * 打开字典类型表单弹窗
 *
 * @param dicTypeId 字典类型ID
 */
function openDialog(dicTypeId?: number) {
  dialog.visible = true;
  if (dicTypeId) {
    dialog.title = "修改字典类型";
    getDictTypeForm(dicTypeId).then(({ data }) => {
      Object.assign(formData, data);
    });
  } else {
    dialog.title = "新增字典类型";
  }
}

/** 字典类型表单提交 */
function handleSubmit() {
  dataFormRef.value.validate((isValid: boolean) => {
    if (isValid) {
      loading.value = false;
      const dictTypeId = formData.id;
      if (dictTypeId) {
        updateDictType(dictTypeId, formData)
          .then(() => {
            ElMessage.success("修改成功");
            closeDialog();
            handleQuery();
          })
          .finally(() => (loading.value = false));
      } else {
        addDictType(formData)
          .then(() => {
            ElMessage.success("新增成功");
            closeDialog();
            handleQuery();
          })
          .finally(() => (loading.value = false));
      }
    }
  });
}

/** 关闭字典类型弹窗 */
function closeDialog() {
  dialog.visible = false;
  resetForm();
}

/**  重置字典类型表单 */
function resetForm() {
  dataFormRef.value.resetFields();
  dataFormRef.value.clearValidate();

  formData.id = undefined;
  formData.status = 1;
}

/** 删除字典类型 */
function handleDelete(dictTypeId?: number) {
  const dictTypeIds = [dictTypeId || ids.value].join(",");
  if (!dictTypeIds) {
    ElMessage.warning("请勾选删除项");
    return;
  }

  ElMessageBox.confirm("确认删除已选中的数据项?", "警告", {
    confirmButtonText: "确定",
    cancelButtonText: "取消",
    type: "warning",
  }).then(() => {
    deleteDictTypes(dictTypeIds).then(() => {
      ElMessage.success("删除成功");
      resetQuery();
    });
  });
}

const dictDataDialog = reactive({
  title: "",
  visible: false,
});

const selectedDictType = reactive({ typeCode: "", typeName: "" }); // 当前选中的字典类型

/** 打开字典数据弹窗 */
function openDictDialog(row: DictTypePageVO) {
  dictDataDialog.visible = true;
  dictDataDialog.title = "【" + row.name + "】字典数据";

  selectedDictType.typeCode = row.code;
  selectedDictType.typeName = row.name;
}

/**  关闭字典数据弹窗 */
function closeDictDialog() {
  dictDataDialog.visible = false;
}

onMounted(() => {
  handleQuery();
});


const value = ref('')
const options = [
  {
    label: '启用',
    value: '1',
  },
  {
    label: '禁用',
    value: '2',
  },
]


/* 静态字段 */
const listData = ref([
  {
    id: '123456',
    order: '泡芙',
    order_name: 'SDRFVGGVCXDDDX',
    price: '3456677654433',
    profit: '汉FHJCNFFJVV',
    time: '支付宝',
    type: '确定',
    unit: '否',
    unit_value: '2023/12/2 09:30:30'

  },
  {
    id: '123456',
    order: '泡芙',
    order_name: 'SDRFVGGVCXDDDX',
    price: '3456677654433',
    profit: '汉FHJCNFFJVV',
    time: '支付宝',
    type: '确定',
    unit: '否',
    unit_value: '2023/12/2 09:30:30'

  },
  {
    id: '123456',
    order: '泡芙',
    order_name: 'SDRFVGGVCXDDDX',
    price: '3456677654433',
    profit: '汉FHJCNFFJVV',
    time: '支付宝',
    type: '确定',
    unit: '否',
    unit_value: '2023/12/2 09:30:30'

  },
  {
    id: '123456',
    order: '泡芙',
    order_name: 'SDRFVGGVCXDDDX',
    price: '3456677654433',
    profit: '汉FHJCNFFJVV',
    time: '支付宝',
    type: '确定',
    unit: '否',
    unit_value: '2023/12/2 09:30:30'

  }
])
</script>


<template>
  <div class="app-container" style="">
    <!--  <div class="search-container">
      <el-form ref="queryFormRef" :model="queryParams" :inline="true">
        <el-form-item label="" prop="name">
          <el-input v-model="queryParams.keywords" placeholder="商户ID/商户名称/登录账号" clearable @keyup.enter="handleQuery" />
        </el-form-item>
        <el-form-item label="" prop="name">
          <el-input v-model="queryParams.keywords" placeholder="代理ID/代理名称/登录账号" clearable @keyup.enter="handleQuery" />
        </el-form-item>
        <el-form-item label="" prop="name">
          <el-select v-model="value" clearable placeholder="状态">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
          </el-select>
        </el-form-item>
        <el-form-item>
            <el-button @click="resetQuery()"><i-ep-refresh />重置</el-button>
            <el-button type="primary" @click="handleQuery()"><i-ep-search />搜索</el-button>
        </el-form-item>
      </el-form>
    </div> -->

    <!-- <el-card shadow="never" class="table-container">
      <template #header>
        <el-button
          v-hasPerm="['sys:dict_type:add']"
          type="success"
          @click="openDialog()"
          ><i-ep-plus />新增</el-button
        >
        <el-button
          v-hasPerm="['sys:dict_type:add']"
          type="success"
          @click="openDialog()"
          ><i-ep-plus />通道统一配置</el-button
        >
        <el-button
          type="danger"
          :disabled="ids.length === 0"
          @click="handleDelete()"
          ><i-ep-delete />批量删除</el-button
        >
      </template>
      <el-table
        v-loading="loading"
        highlight-current-row
        :data="dictTypeList"
        border
        @selection-change="handleSelectionChange"
        height="100%"
      >
        <el-table-column type="selection" width="55" align="center" />
        <el-table-column label="商户ID" prop="name" align="center" width="100" fixed/>
        <el-table-column label="商户名称" prop="code" align="center" width="200" fixed/>
        <el-table-column label="登录账号" prop="code" align="left" width="150">
            <template #default="scope">
                <div style="display: inline-grid;">
                    <span>账户：<span>M100001</span></span>
                    <span>谷歌：<span>未绑定</span></span>
                </div>
            </template>
        </el-table-column>
        <el-table-column label="余额" prop="remark" align="left" width="200">
            <template #default="scope">
                <div style="display: inline-grid;">
                    <span>余额：¥<span>0.00</span></span>
                    <span>冻结：¥<span>0.00</span></span>
                </div>
            </template>
        </el-table-column>
        <el-table-column label="代付余额" prop="remark" align="left" width="200">
            <template #default="scope">
                <div style="display: inline-grid;">
                    <span>账户：M100001</span>
                    <span>谷歌：<span>未绑定</span></span>
                </div>
            </template>
        </el-table-column>
        <el-table-column label="状态" align="center" width="100" >
          <template #default="scope">
            <el-switch v-model="scope.row.status" inline-prompt active-text="启用" inactive-text="禁用"/>
          </template>
        </el-table-column>
        <el-table-column label="支付产品配置" prop="remark" align="left" width="220">
            <template #default="scope">
                <div style="display: flex;">
                    <el-button key="primary" type="primary" text bg size="small">支付产品费率</el-button>
                    <el-button key="primary" type="primary" text bg size="small">支付通道分流</el-button>
                </div>
            </template>
        </el-table-column>
        <el-table-column label="代付产品配置" prop="remark" align="left" width="220">
            <template #default="scope">
                <div style="display: flex;">
                    <el-button key="primary" type="primary" text bg size="small">代付产品费率</el-button>
                    <el-button key="primary" type="primary" text bg size="small">代付通道分流</el-button>
                </div>
            </template>
        </el-table-column>
        <el-table-column fixed="right" label="操作">
          <template #default="scope">
              <div style="display: flex;">
                  <el-button type="primary" link size="small" @click.stop="openDictDialog(scope.row)">登录</el-button>
                  <el-button type="primary" link size="small" @click.stop="openDictDialog(scope.row)">重置密码</el-button>
                  <el-button v-hasPerm="['sys:dict_type:edit']" type="primary" link size="small" @click.stop="openDialog(scope.row.id)">编辑</el-button>
              </div>
              <div style="display: flex;">
                  <el-button type="primary" link size="small" @click.stop="openDictDialog(scope.row)">对接信息</el-button>
                  <el-button v-hasPerm="['sys:dict_type:delete']" type="primary" link size="small" @click.stop="handleDelete(scope.row.id)">删除</el-button>
              </div>
          </template>
        </el-table-column>
      </el-table>

      <pagination
        v-if="total > 0"
        v-model:total="total"
        v-model:page="queryParams.pageNum"
        v-model:limit="queryParams.pageSize"
        @pagination="handleQuery"
        layout="->,total, sizes, prev, pager, next, jumper"
      />
    </el-card> -->

    <!--   <el-dialog
      v-model="dialog.visible"
      :title="dialog.title"
      width="500px"
      @close="closeDialog"
    >
      <el-form
        ref="dataFormRef"
        :model="formData"
        :rules="rules"
        label-width="80px"
      >
        <el-form-item label="字典名称" prop="name">
          <el-input v-model="formData.name" placeholder="请输入字典名称" />
        </el-form-item>
        <el-form-item label="字典编码" prop="code">
          <el-input v-model="formData.code" placeholder="请输入字典编码" />
        </el-form-item>
        <el-form-item label="状态" prop="status">
          <el-radio-group v-model="formData.status">
            <el-radio :label="1">正常</el-radio>
            <el-radio :label="0">停用</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="备注" prop="remark">
          <el-input
            v-model="formData.remark"
            type="textarea"
            placeholder="字典类型备注"
            :autosize="{ minRows: 2, maxRows: 4 }"
          />
        </el-form-item>
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="handleSubmit">确 定</el-button>
          <el-button @click="closeDialog">取 消</el-button>
        </div>
      </template>
    </el-dialog> -->

    <!--字典数据弹窗-->
    <!-- <el-dialog v-model="dictDataDialog.visible" :title="dictDataDialog.title" width="1000px" @close="closeDictDialog">
      <dict-item v-model:typeCode="selectedDictType.typeCode" v-model:typeName="selectedDictType.typeName" />
    </el-dialog> -->

    <div class="pay-container"
      style="height: 100%; background-color: white;padding-top: 10px;box-sizing: border-box;overflow-y: auto;">
      <div class="box1">
        <p class="p">支付订单列表</p>
        <div class="box1bottom">

          <div class="smallbox">
            <p class="p1">提交订单数</p>
            <p class="p2"><span>58</span>个</p>
          </div>
          <div class="smallbox">
            <p class="p1">订单总金额</p>
            <p class="p2"><span>￥58</span></p>
          </div>
          <div class="smallbox">
            <p class="p1">已付订单数</p>
            <p class="p2"><span>58</span>个</p>
          </div>
          <div class="smallbox">
            <p class="p1">已付总金额</p>
            <p class="p2"><span>￥58</span></p>
          </div>
          <div class="smallbox2">
            <p class="p1">未付订单数</p>
            <p class="p2"><span>58</span>个</p>
          </div>
          <div class="smallbox2">
            <p class="p1">未付总金额</p>
            <p class="p2"><span>￥58</span></p>
          </div>

          <div class="smallbox3">
            <p class="p1">商户总收款</p>
            <p class="p2">￥<span>5142</span></p>
          </div>
          <div class="smallbox3">
            <p class="p1">代理商收入</p>
            <p class="p2">￥<span>642</span></p>
          </div>
          <div class="smallbox3">
            <p class="p1">平台收入</p>
            <p class="p2">￥<span>8142</span></p>
          </div>
          <div class="smallbox3">
            <p class="p1">平台收入</p>
            <p class="p2">￥<span>268</span></p>
          </div>
          <div class="smallbox3">
            <p class="p1">平台收入</p>
            <p class="p2"><span>56.4</span>%</p>
          </div>
        </div>
      </div>

      <div class="box2">
        <div class="box2top">
          <div class="left">
            <p class="p1">待回调确认</p>
            <p class="p2">表示订单成功已经回调商户,等待商户确认结果</p>
          </div>
          <div class="right">
            <p class="p3">人工确认</p>
            <p class="p4">表示该笔订单已经收到支付成功通知,由于金额过大需要人工手动确认到账</p>
          </div>
        </div>
        <div class="box2content">
          <div class="topcontent">
            <el-select slot="prepend" v-model="select" placeholder="今天">
              <!--  <el-option label="餐厅名" value="1" />
            <el-option label="订单号" value="2" />
            <el-option label="用户电话" value="3" /> -->
            </el-select>

            <el-select slot="prepend" v-model="select" placeholder="2023-11-23 00:12:30">
            </el-select>
            <el-select slot="prepend" v-model="select" placeholder="2023-11-23 23:59:59">
            </el-select>
            <el-input v-model="input" placeholder="商户ID" clearable />
            <el-input v-model="input" placeholder="支付订单号" clearable />
            <el-input v-model="input" placeholder="商品订单号" clearable />
            <el-input v-model="input" placeholder="商品标题" clearable />

          </div>
          <div class="bottomcontent">
            <el-select slot="prepend" v-model="select" placeholder="支付金额（元）">
            </el-select>
            <el-select slot="prepend" v-model="select" placeholder="支付通道">
            </el-select>
            <el-select slot="prepend" v-model="select" placeholder="通道子账户">
            </el-select>

            <el-input v-model="input" placeholder="渠道商户" clearable style="" />

            <el-select slot="prepend" v-model="select" placeholder="支付产品">
            </el-select>

            <el-select slot="prepend" v-model="select" placeholder="订单状态">
              <el-option label="开启" value="1" />
              <el-option label="禁用" value="2" />
            </el-select>

            <el-select slot="prepend" v-model="select" placeholder="补单状态">
              <el-option label="开启" value="1" />
              <el-option label="禁用" value="2" />
            </el-select>
          </div>
        </div>
      </div>

      <div class="box3">
        <div class="shuaxin">
          <p>自动刷新</p>
          <el-switch v-model="value" active-color="rgba(0, 153, 136, 1)" inactive-color="lightgray" />
        </div>

        <div class="search">
          <el-icon>
            <Search />
          </el-icon>
          <p>搜索</p>
        </div>
        <div class="close">
          <el-icon>
            <Close />
          </el-icon>
          <p>关闭统计</p>
        </div>
        <div class="delete">
          <el-icon>
            <Delete />
          </el-icon>
          <p>彻底删除</p>
        </div>
      </div>

      <div class="box4">
        <div class="export">
          <el-icon style="color: #009988;">
            <Edit />
          </el-icon>
          <p>导出</p>
        </div>
        <div class="layout">
          <el-icon style="color: #009988;">
            <Grid />
          </el-icon>
          <p>排版</p>
        </div>
      </div>

      <div class="box5">
        <el-table :data="listData" class="tabs" width="100%" style="font-size: 14px;margin-top: 15px;"
          :header-cell-style="{ background: '#F2FAF9', height: '50px' }">
          <el-table-column type="selection" width="30" />
          <el-table-column prop="id" label="商户ID" min-width="80" />
          <el-table-column prop="order" label="商户订单" min-width="100" />
          <el-table-column prop="order_name" label="商户标题" min-width="100" />
          <el-table-column prop="price" label="支付单号" min-width="100" />
          <el-table-column prop="profit" label="产品名称" min-width="100" />
          <el-table-column prop="time" label="渠道商户" min-width="100" />
          <el-table-column prop="type" label="状态" min-width="100" />
          <el-table-column prop="unit" label="人工确定" min-width="80" />
          <el-table-column prop="unit_value" label="是否补单" min-width="100" />
          <el-table-column prop="unit_value" label="创建时间" min-width="120" />
          <el-table-column prop="unit_value" label="操作" min-width="120">
            <template slot-scope="scope">
              <el-button type="text" @click="handleClick(scope.row)">详情</el-button>
              <el-button type="text">编辑</el-button>
              <el-button type="text">删除</el-button>
            </template>
          </el-table-column>
        </el-table>
        <pagination v-if="total > 0" v-model:total="total" v-model:page="queryParams.pageNum"
          v-model:limit="queryParams.pageSize" @pagination="handleQuery"
          layout="->,total, sizes, prev, pager, next, jumper" />

        <!--<div class="demo-pagination-block" style="float: right;">
        <div class="demonstration"></div>
        <el-pagination v-model:current-page="currentPage4" v-model:page-size="pageSize4"
          :page-sizes="[100, 200, 300, 400]" :small="small" :disabled="disabled" :background="background"
          layout="total, sizes, prev, pager, next, jumper" :total="400" @size-change="handleSizeChange"
          @current-change="handleCurrentChange" />
      </div> -->
        <div class="demo-pagination-block" style="float: right;margin-top: 10px;">
          <div class="demonstration"></div>
          <el-pagination v-model:current-page="currentPage4" v-model:page-size="pageSize4"
            :page-sizes="[100, 200, 300, 400]" :small="small" :disabled="disabled" :background="background"
            layout="total, sizes, prev, pager, next, jumper" :total="400" @size-change="handleSizeChange"
            @current-change="handleCurrentChange" />
        </div>
      </div>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.app-container {
  height: 100%;

  .table-container {
    height: 100%;

   
  }
}

.box1 {
  width: 100%;
  height: 150px;
  padding-left: 20px;
  margin-top: -10px;
  padding-right: 20px;
  box-sizing: border-box;
  //background-color: pink;

  .p {
    padding-left: 5px;
    border-left: 3px solid rgba(34, 205, 172, 1);
    margin-bottom: 10px;
  }

  .box1bottom {
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: space-around;

    .smallbox {
      width: 105px;
      height: 100px;
      background: #E7F3FF;
      border-radius: 14px 14px 14px 14px;
      opacity: 1;
      padding-left: 5px;
      box-sizing: border-box;

      .p2 {
        color: gray;
        margin-top: -10px;

        span {
          font-size: 18px;
          color: rgba(53, 151, 255, 1);
        }
      }
    }

    .smallbox2 {
      width: 105px;
      height: 100px;
      background: rgba(230, 249, 245, 1);
      border-radius: 14px 14px 14px 14px;
      opacity: 1;
      padding-left: 5px;
      box-sizing: border-box;

      .p2 {
        color: gray;
        margin-top: -10px;

        span {
          font-size: 18px;
          color: rgba(0, 197, 159, 1);
        }
      }
    }

    .smallbox3 {
      width: 105px;
      height: 100px;
      background: rgba(255, 241, 231, 1);
      border-radius: 14px 14px 14px 14px;
      opacity: 1;
      padding-left: 5px;
      box-sizing: border-box;

      .p2 {
        margin-top: -10px;
        font-size: 18px;
        color: rgba(255, 110, 7, 1);

      }
    }
  }
}

.box2 {
  width: 100%;
  height: 150px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;

  .box2top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .left {
      padding-left: 10px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      width: 700px;
      height: 40px;
      background: linear-gradient(90deg, rgba(211, 245, 238, 0.8) 0%, rgba(211, 245, 238, 00) 100%);
      border-radius: 6px 6px 6px 6px;
      opacity: 1;

      .p1 {
        width: 80px;
        height: 26px;
        background-color: rgba(0, 153, 136, 1);
        color: white;
        border-radius: 6px;
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .p2 {
        line-height: 1;
        margin-left: 10px;
        font-size: 14px;
        color: rgba(0, 153, 136, 1);
      }
    }

    .right {
      display: flex;
      padding-left: 10px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      width: 700px;
      height: 40px;
      background: linear-gradient(90deg, rgba(210, 230, 255, 0.8) 0%, rgba(211, 230, 245, 0) 100%);
      border-radius: 6px 6px 6px 6px;
      opacity: 1;

      .p3 {
        width: 80px;
        height: 26px;
        background-color: rgba(50, 121, 247, 1);
        color: white;
        border-radius: 6px;
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .p4 {
        line-height: 1;
        margin-left: 10px;
        font-size: 14px;
        color: rgba(50, 121, 247, 1);
      }
    }
  }

  .box2content {
    width: 100%;
    height: 100px;
    //background-color: skyblue;
    padding-top: 20px;
    box-sizing: border-box;

    .el-input {
      width: 200px;
    }

    .el-select {
      width: 200px;
    }

    .topcontent {
      width: 100%;
      display: flex;
      justify-content: space-around;

    }

    .bottomcontent {
      width: 100%;
      display: flex;
      justify-content: space-around;
      margin-top: 10px;
    }


    /* 去除选择框的聚焦时的蓝色边框 */
    :deep(.el-select .el-input__inner:focus) {
      border-color: transparent !important;
      box-shadow: none !important;
    }


    :deep(.el-select .el-input__wrapper) {
      box-shadow: none !important;
    }

    /* 去除选中时蓝色边框（下面两个都要加上） */
    :deep(.el-input .el-input__wrapper.is-focus) {
      box-shadow: none !important;
    }

    :deep(.el-select .el-input.is-focus .el-input__wrapper) {
      border-color: #DCDFE6 !important;
      box-shadow: none !important;
    }

    :deep(.el-select .el-input__inner) {
      background-color: #F7F8FA;
      width: 130px;
    }

    :deep(.el-input__inner) {
      background-color: #F7F8FA;
      width: 130px;
      font-size: 13px;
      padding-left: 5px;
    }

    :deep(.el-input__wrapper) {
      box-shadow: none !important;
    }

    :deep(.el-select .el-input__inner::after) {
      width: calc(100% + 5px) !important;
      /* 计算宽度，增加 2px 的长度 */
    }

    :deep(.el-select .el-select__caret) {
      background-color: #F7F8FA !important;
      /* 灰色背景 */
      margin-right: -2px;
      padding-top: 4px;
      padding-left: 5px;
      padding-bottom: 4px;
      padding-right: 5px;
      font-size: 25px;
      margin-left: -0px;
    }

    :deep(.el-input__inner) {}

  }
}

.box3 {
  width: 100%;
  height: 50px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  align-items: center;

  .shuaxin {
    display: flex;
    align-items: center;

    .el-switch {
      margin-left: 10px;
    }
  }

  .search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 35px;
    background-color: rgba(0, 153, 136, 1);
    margin-left: 20px;
    border-radius: 6px;
    color: white;

    p {
      margin-left: 5px;
      font-size: 14px;
    }
  }

  .delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 35px;
    background-color: rgba(255, 110, 7, 1);
    margin-left: 20px;
    border-radius: 6px;
    color: white;

    p {
      margin-left: 5px;
      font-size: 14px;
    }
  }

  .close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 35px;
    background-color: rgba(0, 153, 136, 1);
    margin-left: 20px;
    border-radius: 6px;
    color: white;

    p {
      margin-left: 5px;
      font-size: 14px;
    }
  }
}

.box4 {
  width: 100%;
  height: 35px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;

  .export {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #009988;
    padding: 0 15px;
    border-radius: 6px;

    .el-icon-edit-outline {
      color: rgba(0, 153, 136, 1);
    }

    p {
      margin-left: 5px;
      font-size: 14px;
      color: rgba(0, 153, 136, 1);
    }
  }

  .layout {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #009988;
    padding: 0 15px;
    border-radius: 6px;
    margin-left: 10px;

    .el-icon-setting {
      color: rgba(0, 153, 136, 1);
    }

    p {
      margin-left: 5px;
      font-size: 14px;
      color: rgba(0, 153, 136, 1);
    }
  }
}

.box5 {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  .tabs {
      height: calc(100vh - 530px);
      overflow-y: auto;
    }
}

.block {
  width: 100%;
  //background-color: skyblue;
  margin-top: 20px;

  .el-pagination {
    text-align: center;
  }
}</style>
